<?php 
namespace app\common\model\user;

use think\Model;

class UserFeed extends Model
{
	public function getUserIdAttr($v)
	{
		return Users::get($v);
	}
	public function getImgAttr($v)
	{
		$arr = json_decode($v,true);
		foreach ($arr as &$row) {
			$row = 'http://'.$_SERVER['HTTP_HOST'].$row;
		}
		return $arr;
	}
}